"""
import math
math.fabs()
math.sqrt()

"""
l = []
num = 0
n = 0
while True:
    a=input()
    if a == 'q' or a == 'Q':
        break
    elif int(a) > 0:
        l.append(float(a))
        num += 1
        n += float(a)
print(num)
print(l)
print('%0.2f' % (n / num))
# for i in range(len(l)):
#     l[i] = float(l[i])
# n = 0
# for i in l:
#     n += i
